package com.cgy.bionimec.service;

import com.cgy.bionimec.entity.Binghuan;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BinghuanService {
    /**
     * 多条件分页查询
     *
     * @param b
     * @param pageable
     * @return
     */
    Page<Binghuan> findAllBinghuan(Binghuan b, Pageable pageable);
    Long findCoount();

    /**
     新增或修改病患
     */
    Binghuan insertOrUpdate(Binghuan binghuan);
    /**
     * 删除病患
     */
    Integer deleteBinghuan(Integer id);
//    Integer deleteByIdb(Integer id);
    /**
     * 根据id查询信息
     */
    Binghuan findBinghuanById(Integer id);

}
